package com.example.workbench.entity;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;

import javax.validation.constraints.NotNull;


@Data
public class BaseId extends Base{

    @NotNull(message = "id不能为空")
    @JsonSerialize(using= ToStringSerializer.class)
    private Long id;

}
